package com.atguigu04.block.interview;

/**
 * @author liu
 * @create 16:03
 */
public class Test03 {
    public static void main(String[] args) {
        Sub s = new Sub();
        /**
         * sub()的作用
         * base
         * sub 100
         *
         * sub
         * sub 70
         */
    }
}
class Base{
    Base(){
        method(100);//70
    }
    {
        System.out.println("base");
    }
    public void method(int i){
        System.out.println("base : " + i);
    }
}
class Sub extends Base{
    Sub(){
        super.method(70);
    }
    {
        System.out.println("sub");
    }
    public void method(int j){
        System.out.println("sub : " + j);//就近
    }
}
